const exp = require('express');

const ejs = require('ejs');

const data = require('./data/lol.json');

const app = exp();

app.set('views',__dirname+'/html');
app.engine('html',ejs.renderFile);

app.get('/',(req,res)=>{

    let {heros} = data;

    res.render('lol.html',{heros});
});


app.listen(80,()=>{
    console.log("成功");
})